<?php
$this->breadcrumbs=array(
	'试题管理'=>array('index'),
	$model->questions_title,
);

$this->menu=array(
	array('label'=>'新增试题', 'url'=>array('create')),
	array('label'=>'更新试题', 'url'=>array('update', 'id'=>$model->question_id)),
	array('label'=>'删除试题', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->question_id),'confirm'=>'你确认要删除?')),
	array('label'=>'返回管理', 'url'=>array('admin')),
);


$this->beginWidget('zii.widgets.jui.CJuiDialog', array(
	'id'=>'contentDialog',
	// additional javascript options for the dialog plugin
	'options'=>array(
		'title'=>$model->questions_title,
		'autoOpen'=>false,
	),
));

echo CommonApp::echoTest($model,"questions_content",$model->questions_type,$model->questions_content);

$this->endWidget('zii.widgets.jui.CJuiDialog');

// the link that may open the dialog
echo CHtml::link('点击查看试题展示形式', '#', array(
	'onclick'=>'$("#contentDialog").dialog("open"); return false;',
));

?>


<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		//'question_id',
		'questions_title',
		array(               // related city displayed as a link
            'label'=>'题型',
            'type'=>'raw',
            'value'=>$model->getQTyptText(),
        ),
		array(               // related city displayed as a link
            'name'=>'questions_content',
			'type'=>'html',
			//'value'=>CHtml::activeCheckBoxList($model,"questions_content",explode("，",$model->questions_content)),
        ),
		'questions_answer',
		'questions_explanation',
		array(               // related city displayed as a link
            'name'=>'question_creater_id',
			'value'=>$model->question_creater->user_name,
        ),
		'questions_create_time',
		'questions_edit_time',
	),
)); 



?>
